package com.spsoft.vatoutinv;
import java.sql.Connection;
import java.sql.DriverManager;

public class OracleJdbcTest {
    public static void main(String[] args) {
        try {
            System.out.println("11");
            Class.forName("oracle.jdbc.OracleDriver");
            String url = "jdbc:oracle:thin:@//10.1.104.249:1521/orcl";
            Connection conn = DriverManager.getConnection(url, "yourUsername", "yourPassword");
            System.out.println("Connection successful!");
            conn.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
//        try {
//            Class.forName("oracle.jdbc.OracleDriver");
//            String url = "jdbc:oracle:thin:@//10.1.104.249:1521/orcl";
//            Connection conn = DriverManager.getConnection(url, "vatdev_user", "hwsoft");
//            System.out.println("Connection successful!");
//            conn.close();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
    }
}